package com.web.spider.youku.service.impl;

import com.web.spider.youku.entity.Page;
import com.web.spider.youku.service.IDownloadService;
import com.web.spider.youku.util.PageDownloadUtil;

/**
 * @author cherrish
 * @name HttpClientDownloadService
 * @date 2019/4/6 18:01
 * @desc TODO
 */
public class HttpClientDownloadService implements IDownloadService {
    @Override
    public Page download(String url) {
        Page page = new Page();
        page.setContent(PageDownloadUtil.getPageContent(url));
        return page;
    }
}
